//
//  YQGoodsOrderDetailsModel.h
//  MuYing
//
//  Created by tbb on 2020/3/4.
//  Copyright © 2020 TBB. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class YQGoodsOrderItemModel;


@interface YQGoodsOrderDetailsModel : NSObject
//售后状态"售后状态：-1是不可申请，0是可申请，1是已提交申请待补充物流，2是已提交待审核，3是管理员审核通过，4是管理员审核拒绝，5是用户已取消") aftersaleStatus
@property (nonatomic, assign) NSInteger aftersaleStatus;
//"是否是售后订单1是，0不是"
@property (nonatomic, assign) BOOL isAftersale;//是否是售后订单
@property (nonatomic, copy) NSString * aftersaleSn;//退款编号 ,

@property (nonatomic, copy) NSString * handleTime;// (string, optional): 管理员审核（通过或拒绝）时间 ,
@property (nonatomic, strong) NSString * pictures;// 退款凭证图片链接数组 ,
@property (nonatomic, copy) NSString * reason;//退款原因 ,
@property (nonatomic, copy) NSString * refundCreateTime;//退款申请提交时间 ,
@property (nonatomic, copy) NSString * refundId;//退款ID ,,
@property (nonatomic, copy) NSString * refundTime;//退款时间 ,
@property (nonatomic, copy) NSString * sendTime;// 用户发货时间

@property (nonatomic, assign) NSInteger type;//售后类型，0是未收货仅退款，1是已收货（无需退货）仅退款，2用户退货退款 ,
@property (nonatomic, copy) NSString * comment; //评价状态或退款说明 ,
@property (nonatomic, copy) NSString * couponAmount;//优惠券优惠金额 ,
@property (nonatomic, copy) NSString * amount;// 退款金额 ,
@property (nonatomic, copy) NSString * createTime;//订单提交时间
@property (nonatomic, copy) NSString * deliveryTime;//发货时间（234类订单是卖家确认的时间）
@property (nonatomic, copy) NSString * endTime;// 结束时间（2类订单）
@property (nonatomic, copy) NSString * freightAmount;//运费金额
@property (nonatomic, copy) NSString * goodAmount;//商品总价
@property (nonatomic, copy) NSString * integrationAmount;//积分抵扣金额

@property (nonatomic, copy) NSString * lodgerRegion;// 地区（234类订单）
@property (nonatomic, copy) NSString * lodgerState;//国家（234类订单） ,
@property (nonatomic, copy) NSString * note;//订单备注
@property (nonatomic, copy) NSString * orderId;//订单ID
@property (nonatomic, strong) NSArray <YQGoodsOrderItemModel *> * orderItemList;//订单条目列表
@property (nonatomic, copy) NSString * orderSn;// (string, optional): 订单编号 ,
/*
* 订单状态：101->订单生成，未支付 ；102->下单后未支付用户取消；103->下单后未支付，超时系统取消；
* 201->支付完成，待发货；202->付款未发货，退款取消；301->已发货，未确认收货；302->用户确认收货；303->系统自动确认收货
*/
@property (nonatomic, assign) NSInteger orderStatus;// (integer, optional): 订单状态
@property (nonatomic, assign) NSInteger orderType;
@property (nonatomic, copy) NSString * payAmount;//实付金额 = 商品总价 + 运费 - 优惠券优惠金额 - 积分抵扣金额(合计) ,
@property (nonatomic, copy) NSString * paymentTime;//支付时间
@property (nonatomic, copy) NSString * receiveTime;//确认收货时间（234类订单无需用户确认收货，所以也是卖家确认的时间） ,
@property (nonatomic, copy) NSString * receiverCity;//城市
@property (nonatomic, copy) NSString * receiverProvince;//省
@property (nonatomic, copy) NSString * receiverRegion;//区 ,
@property (nonatomic, copy) NSString * startTime;//开始时间（2类订单）
@property (nonatomic, copy) NSString * useTime;//使用日期（2类订单：进入时间-离开时间，3类订单：使用日期当天，4类订单：待定） ,
@property (nonatomic, copy) NSString * userAddress;//用户地址（如果是4类订单的住址，则只取这一个字段即可）
@property (nonatomic, copy) NSString * userAge;//用户年龄（4类订单）
@property (nonatomic, copy) NSString * userBirthday;//用户出生日期（4类订单）
@property (nonatomic, copy) NSString * userEmail;//用户邮箱

@property (nonatomic, copy) NSString * userId;
@property (nonatomic, copy) NSString * userName;
@property (nonatomic, copy) NSString * userPhone;
@property (nonatomic, copy) NSString * userPostCode;
@property (nonatomic, assign) NSInteger userSex;

@property (nonatomic, copy) NSString * address;
@property (nonatomic, copy) NSString * usageMode;
@end

NS_ASSUME_NONNULL_END
